<?php
	require_once("../../../include/connect.php");
	
	$nam = $_POST['nam'];
	$chon_mon = $_POST['chon_mon'];
	$so_buoi = $_POST['so_buoi'];
	$buoi_day = mysql_real_escape_string(strip_tags($_POST['buoi_day']));
	
	$query = mysql_query(" INSERT INTO schedule(subject,num_day,day,year) VALUES({$chon_mon}, {$so_buoi}, '{$buoi_day}', {$nam}) ");
	if($query)
		echo "0";
	else
		echo "1";
?>